package com.unionpay.mpds.web.interceptor;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.StrutsStatics;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import com.opensymphony.xwork2.util.ValueStack;
import com.unionpay.mpds.util.Constants;
import com.unionpay.mpds.util.WebUtil;

public class UserIndexInterceptor extends AbstractInterceptor {

	@Override
	public String intercept(ActionInvocation arg0) throws Exception {
		HttpServletRequest request = (HttpServletRequest) arg0.getInvocationContext().get(StrutsStatics.HTTP_REQUEST);
		Map session = arg0.getInvocationContext().getSession();
		ValueStack valueStack=arg0.getInvocationContext().getValueStack();
		if(null==request.getParameter("usrId")){
			return WebUtil.returnCode(arg0, Constants.USR_FORBID);
		}
		try{
			
		}catch(Exception e){
			
		}
		return arg0.invoke();
	}
}
